<!DOCTYPE html>
<html>
<head>
	<title>文件管理</title>
	#parse("sys/header.html")
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />

	<style type="text/css">
		#preview,
		.img,
		img {
			width: 200px;
			height: 200px;
		}

		#preview {
			border: 1px solid #000;
		}
	</style>
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			#if($shiro.hasPermission("filemanagement:uploadwin"))
			<a class="btn btn-primary" id="uploadwin"><i class="fa fa-plus"></i>&nbsp;上传文件</a>
			#end
			#if($shiro.hasPermission("filemanagement:del"))
			<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			#end
		</div>
		<table id="jqGrid"></table>
		<div id="jqGridPager"></div>
	</div>
	<div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<div id="preview"></div>
		<form id="uploadForm">
			<input type="file" onchange="preview(this)" name="file"/>
			<input type="button" class="btn btn-warning" value="上传" onclick="doUpload()" />
			&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>

		</form>
	</div>
</div>



<script src="${rc.contextPath}/js/hr/filemanagement.js?_${date.systemTime}"></script>
</body>
</html>